<?php
/**
 * Created by PhpStorm.
 * User: 123
 * Date: 2021/3/31
 * Time: 1:14
 */
namespace app\adminapi\model;

/**
 * 后台用户信息模型
 * Class Admin
 * @package app\adminapi\model
 */
class Admin extends Common
{
    /**
     * 获取密码加密后的字符串
     * @param string $password 密码
     * @param string $salt     密码盐
     * @return string
     */
    public static function getEncryptPassword($password, $salt = '')
    {
        return md5(md5($password) . $salt);
    }

}